package com.example.service;

import com.example.model.UserDomain;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {
    int addUser(UserDomain user);
    PageInfo<UserDomain> findAllUser(int pageNum, int pageSize);

    List<UserDomain> getUserByName(String name);

    /** 验证spring 事物 回滚*/
    void isertUser1(UserDomain user);
    void isertUser2(UserDomain user) throws Exception;
    void isertUser3(UserDomain user);
    void isertUser4(UserDomain user);
}
